#include "client.h"

int pwdFunc(int sockfd){
    int len;
    char* path;
    int ret=recv(sockfd,&len,sizeof(int),0);
    if(ret==0){
        printf("pwd error\n");
        return -1;
    }
    ret=recv(sockfd,path,len,0);
    if(ret==0){
        printf("pwd error\n");
        return -1;
    }
    printf("当前工作目录：%s",path);
    return 0;
}
